package com.armed.ejb.transference.ventas;

import java.awt.Color;
import java.io.Serializable;
import java.util.Date;

/**
 * Class CobradaYEntregada
 *
 *
 * @author init() software
 * @version 23/01/2008 
 */
public class CobradaYEntregada extends AbstractVentaState implements Serializable
{
    /** Constante que indica el mensaje de estado de esta clase */
    public static final String STATE_MESSAGE = "Cobrada y Entregada";
    
    public static final Color BACKGROUND = new Color(198,255,198);
    
    public static final Color FOREGROUND = new Color(0,102,0);
    
    /** Constructor of CobradaYEntregada
     */
    public CobradaYEntregada()
    {
        message = this.toString();
    }

    @Override
    public AbstractVentaState cobrar(Date fechaCobro)
    {
        return this;
    }

    @Override
    public AbstractVentaState entregar(Date fechaEntrega)
    {
        return this;
    }

    @Override
    public AbstractVentaState cancelar()
    {
        return new Cancelada();
    }

    /** toString() method - returns the representation of the class in a String
     * @return the representation of the class in a String
     */
    @Override
    public String toString()
    {
        return STATE_MESSAGE;
    }
}
